import {
  fetch,
  post
} from './network';

/**
 * 农产品市场产值饼状图，amount单位万元
 * 该饼状图与柱状图不完全统一，柱状图只是top5，饼状图包含了top5之外的数据
 */
const farmProduceOutputValue = {
  "legend": ["蔬菜", "水果", "畜产品", "粮食", "其他"],
  "series": [4508, 6798, 11404, 15079, 1565]
}

/**
 * 农产品市场top数据，单位千克？这里的单位似乎有问题，茄子才175千克？畜产品标记是吨，但是猪肉4w多吨？
 * 现在是原数据，这里需要沟通
 * vegetables：蔬菜；fruit：水果；animalProducts：畜产品；foodstuff：粮食
 */
const farmProduceMartTop = {
  "vegetables": {
    "xAxis": ["白菜", "甘蓝", "番茄", "西葫芦", "茄子"],
    "series": [892, 654, 432, 211, 175]
  },
  "fruit": {
    "xAxis": ["苹果", "梨", "西瓜", "桃", "杏"],
    "series": [3462, 1455, 676, 597, 367]
  },
  "animalProducts": {
    "xAxis": ["猪肉", "禽蛋", "牛奶", "禽肉", "羊肉"],
    "series": [45168, 34748, 14950, 13915, 3505]
  },
  "foodstuff": {
    "xAxis": ["玉米", "小麦", "大豆", "谷子", "高粱"],
    "series": [540, 420, 390, 300, 250]
  }
}

/**
 * 主导产业数据企业产值当年趋势，单位万元
 * x：时间轴；y：产值（万元）轴；s：类型，1=生猪（蓝色）、2=红枣（红色）、3=蔬菜（绿色）
 */
const enterpriseOutputValueTrend = {
  "xAxis": ["2019-01", "2019-02", "2019-03", "2019-04", "2019-05", "2019-06", "2019-07", "2019-08"],
  "names": ["生猪", "红枣", "蔬菜"],
  "series": [
    [5234, 2145, 3241, 4574, 6543, 4247, 5421, 4598],
    [4399, 3433, 3100, 3574, 5543, 6247, 6421, 6598],
    [3399, 3133, 2910, 4100, 5000, 5147, 5421, 5898]
  ]
}


/**
 * 土地流数据，数据与展示效果不符，展示百分比是写死的，流转类型数据也不能完全对应
 * andTransferRate 土地流转率
 * formOfLandTransfer：土地流转形式
 * 需要考虑：流转形式汇总后是15.7，与16.3不符
 */

const andTransferRate = {
  "legend": ["流转", "未流转"],
  "series": [16.3, 26.7]
}

const formOfLandTransfer = {
  "legend": ["转包", "转让", "租赁", "互换", "入股", "其他"],
  "series": [54623.57, 7975.491, 69353.627, 7511.534, 6124, 17445.48]
}

/**
 * 农业保险额
 * x：时间轴；y：农业保险收入（亿）；s：增加率%
 */
const agriculturalInsurance = {
  "names": ["农业保险收入", "增长率"],
  "xAxis": ["2011", "2012", "2013", "2014", "2015"],
  "series": [
    [173.8, 240.6, 306.6, 325.8, 384.7],
    [30, 38.4, 27.4, 6.3, 18.1]
  ]
}


// ****************ly start**********************
/**
 *  农业物资消耗统计图
 *  x: 2014,2015,2016,2017,2018,2019
 *  y: 具体值 （单位 万元）
 *  s: 1 化肥 2 农药 3 种子 4 农膜
 */
function materialConsumption() {
  const materialConsumption = [{
      "x": "2014",
      "y": 24235,
      "s": "1"
    },
    {
      "x": "2014",
      "y": 12344,
      "s": "2"
    },
    {
      "x": "2014",
      "y": 23424,
      "s": "3"
    },
    {
      "x": "2014",
      "y": 35356,
      "s": "4"
    },
    {
      "x": "2015",
      "y": 42435,
      "s": "1"
    },
    {
      "x": "2015",
      "y": 4532,
      "s": "2"
    },
    {
      "x": "2015",
      "y": 53554,
      "s": "3"
    },
    {
      "x": "2015",
      "y": 24322,
      "s": "4"
    },
    {
      "x": "2016",
      "y": 32463,
      "s": "1"
    },
    {
      "x": "2016",
      "y": 9854,
      "s": "2"
    },
    {
      "x": "2016",
      "y": 46464,
      "s": "3"
    },
    {
      "x": "2016",
      "y": 56521,
      "s": "4"
    },
    {
      "x": "2017",
      "y": 28654,
      "s": "1"
    },
    {
      "x": "2017",
      "y": 12121,
      "s": "2"
    },
    {
      "x": "2017",
      "y": 36564,
      "s": "3"
    },
    {
      "x": "2017",
      "y": 42131,
      "s": "4"
    },
    {
      "x": "2018",
      "y": 34246,
      "s": "1"
    },
    {
      "x": "2018",
      "y": 5424,
      "s": "2"
    },
    {
      "x": "2018",
      "y": 46346,
      "s": "3"
    },
    {
      "x": "2018",
      "y": 24532,
      "s": "4"
    },
    {
      "x": "2019",
      "y": 12632,
      "s": "1"
    },
    {
      "x": "2019",
      "y": 43211,
      "s": "2"
    },
    {
      "x": "2019",
      "y": 25356,
      "s": "3"
    },
    {
      "x": "2019",
      "y": 4535,
      "s": "4"
    }
  ];
  const names = ['化肥', '农药', '种子', '农膜'];
  const group = materialConsumption.reduce((result, current, index) => {
    const {
      xAxis,
      series
    } = result;
    const {
      x,
      y,
      s
    } = current;
    xAxis.add(x);
    series[s - 1].push(y);
    return result;
  }, {
    xAxis: new Set(),
    names,
    series: names.map(item => []),
  });

  group.xAxis = Array.from(group.xAxis);
  return group;
}

/**
 *  农产品加工产量统计图
 *  x: 2017,2018,2019
 *  y: 具体值 （单位 千克）
 *  s: 1 农产品初加工 2  农产品深加工
 */
function processingOutput() {
  const processingOutput = [{
      "x": "2017",
      "y": 24254,
      "s": "1"
    },
    {
      "x": "2017",
      "y": 2342,
      "s": "2"
    },
    {
      "x": "2018",
      "y": 34242,
      "s": "1"
    },
    {
      "x": "2018",
      "y": 3211,
      "s": "2"
    },
    {
      "x": "2019",
      "y": 53211,
      "s": "1"
    },
    {
      "x": "2019",
      "y": 6543,
      "s": "2"
    }
  ];
  const names = ['农产品初加工', '农产品深加工'];
  const group = processingOutput.reduce((result, current, index) => {
    const {
      xAxis,
      series
    } = result;
    const {
      x,
      y,
      s
    } = current;
    xAxis.add(x);
    series[s - 1].push(y);
    return result;
  }, {
    xAxis: new Set(),
    names,
    series: names.map(item => []),
  });

  group.xAxis = Array.from(group.xAxis);
  return group;
}

/**
 *  农产品加工产值统计图
 *  x: 2017,2018,2019
 *  y: 具体值 （单位 万元）
 *  s: 1 农产品初加工 2  农产品深加工
 */
function outputValue() {
  const outputValue = [{
      "x": "2017",
      "y": 24254,
      "s": "1"
    },
    {
      "x": "2017",
      "y": 2342,
      "s": "2"
    },
    {
      "x": "2018",
      "y": 34242,
      "s": "1"
    },
    {
      "x": "2018",
      "y": 3211,
      "s": "2"
    },
    {
      "x": "2019",
      "y": 53211,
      "s": "1"
    },
    {
      "x": "2019",
      "y": 6543,
      "s": "2"
    }
  ];
  const names = ['农产品初加工', '农产品深加工'];
  const group = outputValue.reduce((result, current, index) => {
    const {
      xAxis,
      series
    } = result;
    const {
      x,
      y,
      s
    } = current;
    xAxis.add(x);
    series[s - 1].push(y);
    return result;
  }, {
    xAxis: new Set(),
    names,
    series: names.map(item => []),
  });

  group.xAxis = Array.from(group.xAxis);
  return group;
}

/**
 *  农业设施种类数量统计图
 *  x: 园艺设施,温室设施,养殖设施，食用菌生产设施，水产养殖设施
 *  y: 具体值
 */
const facilityType = [{
    "name": "园艺设施",
    "value": 3535
  },
  {
    "name": "温室设施",
    "value": 2424
  },
  {
    "name": "养殖设施",
    "value": 1253
  },
  {
    "name": "食用菌生产设施",
    "value": 654
  },
  {
    "name": "水产养殖设施",
    "value": 1543
  }
];
/**
 *  农业经营模式统计图
 *  x:专业大户,家庭农场,专业合作社
 *  y:具体值
 */
const businessModel = [{
    "name": "专业大户",
    "value": 542434
  },
  {
    "name": "家庭农场",
    "value": 23243
  },
  {
    "name": "专业合作社",
    "value": 32454
  }
];

/**
 *  涉农服务企业数量
 *  x: 金融,信息,农机，技术服务
 *  y: 具体值
 */
const serviceEnterprises = [{
    "name": "金融",
    "value": 2345
  },
  {
    "name": "信息",
    "value": 12312
  },
  {
    "name": "农机",
    "value": 2455
  },
  {
    "name": "技术服务",
    "value": 4245
  }
];

/**
 *  土壤温度  土壤湿度  光照  空气温度  二氧化碳  空气湿度 统计数据
 *  X轴数据  时间 ：list0
 *  Y轴数据 土壤温度 ：list1 ，土壤湿度 ：list2   光照 ：list3  空气温度 ：list4  二氧化碳 ：list5  空气湿度 ：list6
 */
// 拉取数据的handler
async function fetchJxwyData() {
  const data = await fetch('/jxwysjzs/tzzx/sjcx');
  const {
    returnCode,
    returnData: list = []
  } = data;
  if (returnCode === 1) {
    // 值映射，这里抽象： 时间， 土壤温度， 土壤湿度， 光照， 空气温度， 二氧化碳，  空气湿度
    const mapping = {
      channel1: 'soilTemp',
      channel2: 'soilHum',
      channel3: 'light',
      channel4: 'airTemp',
      channel5: 'co2',
      channel6: 'airHum',
    };
    // 搜索检查点
    let searcher = '';
    // 复制一个新的数组，包含所偶遇内容和解析的内容
    return list.map(item => ({
      ...item,
      sj: item.infoDataTime.substring(11, 13),
    })).filter(item => {
      if (!searcher || searcher !== item.sj) {
        searcher = item.sj;
        return true;
      }
      return false;
    }).reduce((result, item, index) => {
      // 单独设置时间
      result.time.push(`${item.sj}:00`);
      // 设置所有属性
      Object.keys(mapping)
        .forEach(key => {
          const prop = mapping[key];
          result[prop].push(item[key]);
        });
      // 返回结果
      return result;
    }, Object.values(mapping).reduce((result, item) => {
      result[item] = [];
      return result;
    }, {
      time: []
    }));
  }
  console.error('未能成功获取监控信息！');
  throw new Error('未能成功获取监控信息！');
}
/* 
* 番茄小镇的数据获取
*/
async function getFqxzData() {
  //空气湿度
  let p1 = fetch('/device/device/519705798/airmoi');
  //空气温度
  let p2 = fetch('/device/device/519705798/airtemp');
  //CO2浓度数据
  let p3 = fetch('/device/device/519705798/airco2');
  //土壤湿度数据
  let p4 = fetch('/device/device/519705831/soilmoi');
  //土壤温度数据
  let p5 = fetch('/device/device/519705831/soiltemp');

  const resList = await Promise.all([p1,p2,p3,p4,p5]);
  
  let _mapKeys = ["airHum", "airTemp", "co2", "soilHum", "soilTemp"];
  let _result = {};
  resList.forEach((item,index) => {
    let _data = item.data.slice(-9);
    _result[_mapKeys[index]] = _data.map(val => val.sensorData.toFixed(2))
  });
  _result.time = resList[0].data.slice(-9).map(item => item.createTime.substring(11));
  return _result;
}
/**
 * 2018年育苗数量统计
 * xAxis: X轴数据 月份
 * yAxis: Y轴数据 产量
 */
const numOfTree = {
  'xAxis': ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
  'yAxis': [382.0913, 284.3142, 370.0190, 568.1023, 618.1130, 245.6931, 158.0022, 128.7513, 932.558, 161.5732, 330.9347, 457.8470],
};

/**
 * 草莓 2.9%  番茄 37.8%  黄瓜 35.1%  辣椒 7.5%
 * 茄子 9.7%  西葫芦 0.3%  西瓜  6.4%  其他  0.3%
 */
const growPieData = [
  ['草莓', 30],
  ['番茄', 21.8],
  ['黄瓜', 19.6],
  ['辣椒', 3.5],
  ['茄子', 3.5],
  ['西葫芦', 1.8],
  ['西瓜', 3.6],
  ['容器苗', 16.2]
];

/**
 * 提供四季的指标，直接循环遍历展示静态数据即可
 */
const seasonEnvironment = [{
    title: '春',
    keys: ['月均高温', '月均低温', '月均降水量'],
    values: ['20℃', '6℃', '55mm'],
  },
  {
    title: '夏',
    keys: ['月均高温', '月均低温', '月均降水量'],
    values: ['24℃', '13℃', '77mm'],
  },
  {
    title: '秋',
    keys: ['月均高温', '月均低温', '月均降水量'],
    values: ['17℃', '5℃', '128mm'],
  },
  {
    title: '冬',
    keys: ['月均高温', '月均低温', '月均降水量'],
    values: ['4℃', '-8℃', '10mm'],
  }
];

/**
 * 获取天气数据，
 * tmp ：温度   cond_txt：天气  loc:时间  hum：湿度  wind_dir：风向 wind_sc：风速
 */
async function getWeather() {
  const {
    data: {
      returnCode,
      returnData = ''
    } = {}
  } = await post('/jxwysjzs/weather/gethfWeather') || {};
  if (returnCode === 1 && !!returnData) {
    try {
      // 只需要now
      const {
        HeWeather6: [{
          now
        }]
      } = JSON.parse(returnData) || {};
      // 返回天气数据
      return now;
    } catch (e) {
      console.error(e);
      throw new Error(`解析天气结果出错！${e}`);
    }
  } else {
    throw new Error('未查询到天气信息！');
  }
}

/**
 * 获取视频监控列表
 * @return {Promise<void>}
 */
async function getMonitors(params = {}) {
  const {
    code,
    data = {},
    msg
  } = await fetch('/platforms/regions/cameras', {
    ...params,
    protocol: 'hls',
  }) || {};
  if (code === 200) {
    return data;
  }
  throw new Error(`请求视频监控时出错，原因：${msg}`);
}

/**
 * 获取监控园区
 */
async function getRegions(params = {}) {
  const {
    code,
    data = {},
    msg
  } = await fetch('/platforms/regions', params) || {};
  if (code === 200) {
    return data;
  }
  throw new Error(`请求视频园区列表出错，原因：${msg}`);
}
// ****************ly end**********************



//********************GWK Start*************************
/**
 * 汇总数据，这里面的值需要四舍五入取整。数据结构简单，循环显示即可
 */
const topTotalData = [{
    name: "农业总产值(万元)",
    value: 388257.3
  },
  {
    name: "耕地总面积(亩)",
    value: 433275
  },
  {
    name: "农业总产量(千克)",
    value: 208700.6
  },
  {
    name: "城镇人均收入(元)",
    value: 31061
  },
  {
    name: "农户总数(户)",
    value: 87562
  },
  {
    name: "农村总人口数(人)",
    value: 221799
  },
  {
    name: "农民人均收入(元)",
    value: 19143
  },
];

/**
 *  太古农业概览图
 *  character 指标 指  农作物种植面积 农业总产值 农村人口 农业机械总动粮食产量...
 *  num   数量
 *  unit  单位
 * @type {{character: string, unit: string, num: number}[]}
 */
const agricultureOverviewChart = [{
    "character": "农作物种植面积",
    "num": 29368.4,
    "unit": "公顷"
  },
  {
    "character": "农业总产值",
    "num": 38.83,
    "unit": "亿"
  },
  {
    "character": "农村人口",
    "num": 156601,
    "unit": "人"
  },
  {
    "character": "农业机械总动",
    "num": 20.4,
    "unit": "万千瓦"
  },
  {
    "character": "粮食产量",
    "num": 208700.6,
    "unit": "吨"
  },
  {
    "character": "猪牛羊肉产量",
    "num": 50096.8,
    "unit": "吨"
  },
  {
    "character": "家庭农场",
    "num": 248,
    "unit": "家"
  },
  {
    "character": "农业合作社",
    "num": 864,
    "unit": "家"
  }
];


/**
 *  产业结构条形图数据
 * industryDatas 三个产业结构2013-2019数据
 * dimension     产业结构统计维度
 * years         年份 降序排列
 * @type {{industryDatas: number[][], dimension: [string, string, string], years: string[]}}
 */
const industryStructBarChart = {
  "dimension": ["第一产业", "第二产业", "第三产业"],
  "years": ["2013年", "2014年", "2015年", "2016年", "2017年", "2018年", "2019年"],
  "industryDatas": [
    [16.2, 17.2, 18, 18.3, 18.7, 21.3, 22.5], //第一产业结构数据  按照年份降序排列
    [19, 18.8, 19.9, 19.8, 25.1, 24.4, 25.7], //第二产业结构数据  按照年份降序排列
    [30.8, 37, 39.5, 42.3, 47.5, 50.9, 56.3] //第三产业结构数据  按照年份降序排列
  ]
};

/**
 * 产业结构饼状图数据
 * industry 产业名称
 * price 产业数值
 * @type {({price: number, industry: string}|{price: number, industry: string}|{price: number, industry: string}|{price: number, industry: string}|{price: number, industry: string})[]}
 */
const industryStructProportionChart = [{
    "industry": "林业",
    "price": 20784.1
  },
  {
    "industry": "农业",
    "price": 198029.9
  },
  {
    "industry": "渔业",
    "price": 282.2
  },
  {
    "industry": "牧业",
    "price": 146128.8
  },
  {
    "industry": "农林牧渔服务业",
    "price": 3550
  }
];

const colorList = ["#01A4FE", "#6D53F6", "#52F4E7", "#01A4FF", "#08C49A", "#AC4BFC", "#cfb2a9", "#fe9f11", "#f1774e", "#618bbf", "#025ea2"];


/**
 *xAxis 年份
 *datas中 包含两部分数据
 *        第一个对象是生产总值数据
 *        第二个对象是增长率的数据
 */
const economicDevelopBarChart = {
  "names": ["生产总值", "增长率(%)"],
  "xAxis": ["2013年", "2014年", "2015年", "2016年", "2017年", "2018年"],
  "datas": [{
      "name": "生产总值",
      "type": 'bar',
      "data": [66, 73, 77.4, 80.4, 91.3, 96.6]
    },
    {
      "name": "增长率(%)",
      "type": 'line',
      "data": ["-", 10.61, 6.03, 3.88, 13.56, 5.81]
    }
  ]
};

/**
 *第一个数组表示  三种不同的居民收入
 * 第二个数组表示 2013年中城镇、乡镇、农村分别对应的三种收入
 */
const peopleIncomeBarChart = {
  source: [
    ['element', '城镇', '乡镇', '农村'],
    ['2013', 16282, 21781, 12518],
    ['2014', 18024, 23720, 14027],
    ['2015', 19528, 25617, 15254],
    ['2016', 20907, 27385, 16368],
    ['2017', 22287, 29165, 17564],
    ['2018', 24182, 31061, 19143]
  ]
};

/***
 *主要农产品产量 条形图   单位 吨
 * dimension 维度 指 主要的农产品
 * datas 主要的农产品产量
 */
const mainAgriculturalProcutNumsBarChart = {
  "dimension": ["生猪", "玉米", "红枣", "禽蛋", "肉禽", "羊", "牛奶", "苹果", "肉牛", "薯类", "小麦", "大豆"],
  "datas": [93380.5, 36565.6, 22838.1, 18745.8, 12298.3, 10512.8, 6235.2, 5698.5, 3269.4, 2792.3, 1373.5, 972.3]
};

/**
 * 规模养殖分布条形图 单位 家
 * dimension 养殖乡镇
 * datas 养殖户数
 */
const scaleBreedAreaBarChart = {
  "dimension": ["北城区", "南城区", "明星镇", "胡村镇", "小白乡", "北洸乡", "侯城乡", "任村乡", "水秀乡", "范村镇", "阳邑乡"],
  "datas": [6, 37, 80, 102, 103, 104, 105, 110, 115, 134, 237]
};

/**
 *农机资源区域分布饼状图  单位:千瓦
 * village 乡镇
 * num 资源量
 */
const agriculturalResourceAreaProportionChart = [{
    "village": "北洸乡",
    "num": 18785.08
  },
  {
    "village": "胡村镇",
    "num": 35913.54
  },
  {
    "village": "侯城乡",
    "num": 21424.64
  },
  {
    "village": "范村镇",
    "num": 14534.12
  },
  {
    "village": "水秀乡",
    "num": 20096.3
  },
  {
    "village": "任村乡",
    "num": 24955.42
  },
  {
    "village": "小白乡",
    "num": 29710.68
  },
  {
    "village": "阳邑乡",
    "num": 27274.08
  },
  {
    "village": "明星镇",
    "num": 13602.98
  }
]

/**
 * 农业合作社区域分布 条形图   单位 ：家
 * dimension 维度 指 乡镇
 * datas 具体的分布的乡镇数据
 * @type {{datas: number[], dimension: string[]}}
 */
const agriculturalCooperationAreaBarChart = {
  "dimension": ["北洸乡", "胡村镇", "侯城乡", "范村镇", "水秀乡", "任村乡", "小白乡", "阳邑乡", "明星镇"],
  "datas": [121, 110, 108, 104, 94, 93, 88, 88, 57]
};

//********************GWK End*************************

//-----------------科技研发 start -----------------
const educationRatio = {
  category: ['学士', '硕士', '博士', '名誉博士', '其他'],
  series: [309, 199, 90, 1, 73],
}

const educationTypeRatio = {
  category: ['非导', '硕导', '博导', '其他'],
  series: [534, 93, 43, 2],
}

const sexRatio = {
  category: ['男', '女'],
  series: [441, 231],
}


const scienceResearchPersonTotal = 672; // 总数
const partyMemberTotal = 405; //中共党员

const scienceResearchProjectTotal = 3273; // 总数
const patentTotal = 801;
const newBreedTotal = 584;

const photoDetails = [{
    "url": "http://www.qingqingxy.com.cn/product/kaptcha/1210601330737983489.png",
    "name": "曹冬梅",
    "title": "研究员"
  },
  {
    "url": "http://www.qingqingxy.com.cn/product/kaptcha/1210600581924696065.png",
    "name": "白云凤",
    "title": "研究员"
  },
  {
    "url": "http://www.qingqingxy.com.cn/product/kaptcha/1210599763234304001.png",
    "name": "白琪林",
    "title": "研究员"
  },
  {
    "url": "http://www.qingqingxy.com.cn/product/kaptcha/1210597655693012994.png",
    "name": "白建荣",
    "title": "研究员"
  },
  {
    "url": "http://www.qingqingxy.com.cn/product/kaptcha/1210595702690852865.png",
    "name": "畅志坚",
    "title": "研究员"
  },
  {
    "url": "http://www.qingqingxy.com.cn/product/kaptcha/1210610611218673665.png",
    "name": "李永山",
    "title": "研究员"
  },
  {
    "url": "http://www.qingqingxy.com.cn/product/kaptcha/1210609614970810370.png",
    "name": "李丽君",
    "title": "研究员"
  },
  {
    "url": "http://www.qingqingxy.com.cn/product/kaptcha/1210605410910777346.png",
    "name": "毛丽萍",
    "title": "副研究员"
  },
  {
    "url": "http://www.qingqingxy.com.cn/product/kaptcha/1210604580556025858.png",
    "name": "李磊",
    "title": "副研究员"
  },
  {
    "url": "http://www.qingqingxy.com.cn/product/kaptcha/1210602562340827137.png",
    "name": "焦晓燕 ",
    "title": "二级研究员"
  },
  {
    "url": "http://www.qingqingxy.com.cn/product/kaptcha/1210601330737983489.png",
    "name": "曹冬梅",
    "title": "研究员"
  },
  {
    "url": "http://www.qingqingxy.com.cn/product/kaptcha/1210600581924696065.png",
    "name": "​白云凤",
    "title": "研究员"
  },
  {
    "url": "http://www.qingqingxy.com.cn/product/kaptcha/1210599763234304001.png",
    "name": "白琪林",
    "title": "研究员"
  },
  {
    "url": "http://www.qingqingxy.com.cn/product/kaptcha/1210597655693012994.png",
    "name": "白建荣",
    "title": "研究员"
  },
  {
    "url": "http://www.qingqingxy.com.cn/product/kaptcha/1210595702690852865.png",
    "name": "畅志坚",
    "title": "研究员"
  },
  {
    "url": "http://www.qingqingxy.com.cn/product/kaptcha/1210610611218673665.png",
    "name": " 李永山",
    "title": "研究员"
  },
  {
    "url": "http://www.qingqingxy.com.cn/product/kaptcha/1210609614970810370.png",
    "name": "​李丽君",
    "title": "研究员"
  },
  {
    "url": "http://www.qingqingxy.com.cn/product/kaptcha/1210605410910777346.png",
    "name": "毛丽萍",
    "title": "副研究员"
  }
];

const levelSum = {
  category: ['省级', '国家级'],
  series: [491, 93],
}

const unitSum = {
  category: [
    '高粱研究所',
    '谷子研究所',
    '经济作物研究所',
    '棉花研究所',
    '山西省农业科学院蔬菜研究所',
    '现代农业研究中心',
    '小麦研究所',
    '玉米研究所',
    '作物科学研究所',
    '其他'
  ],
  series: [
    52,
    60,
    56,
    64,
    60,
    30,
    62,
    33,
    95,
    72
  ]
};

const patentDepartSum = {
  category: [
    '畜牧兽医研究所',
    '高寒区作物研究所',
    '高粱研究所',
    '谷子研究所',
    '果树研究所',
    '经济作物研究所',
    '棉花研究所',
    '农产品贮藏保鲜研究所',
    '农业科技信息研究所',
    '山西省农业科学院农业环境与资源研究所',
    '山西省农业科学院蔬菜研究所',
    '生物技术研究中心',
    '食用菌研究所',
    '试验研究中心',
    '隰县试验站',
    '现代农业研究中心',
    '小麦研究所',
    '右玉试验站',
    '玉米研究所',
    '园艺研究所',
    '植物保护研究所',
    '作物科学研究所',
  ],
  series: [
    50,
    7,
    76,
    7,
    79,
    41,
    132,
    32,
    11,
    6,
    22,
    5,
    45,
    20,
    2,
    18,
    78,
    2,
    45,
    5,
    44,
    74,
  ]
};

const departmentDetail = [{
    "source": "省厅其他项目",
    "name": "葡萄保鲜及商品化处理新技术推广",
    "author": "李建华",
    "department": "办公室",
    "text": "葡萄保鲜及商品化处理"
  },
  {
    "source": "省厅其他项目",
    "name": "移动式果蔬冷库消毒及乙烯脱除机专利技术应用推广",
    "author": "王春生",
    "department": "办公室",
    "text": "移动式果蔬冷库消毒及乙烯脱除机专利技术"
  },
  {
    "source": "其他项目",
    "name": "旱地高产超高产小麦品种生理特性研究",
    "author": "张东旭",
    "department": "畜牧兽医研究所",
    "text": "旱地高产超高产小麦品种生理特性研究"
  },
  {
    "source": "山西省农科院攻关项目",
    "name": "设施西葫芦优质高产形成的生理机制研究",
    "author": "武青山",
    "department": "畜牧兽医研究所",
    "text": "1.不同西葫芦品种之间优质高产与生理特征之间的关系研究。2.不同栽培密度对优质高产与生理特征的影响。3.生长调节剂调控对优质高产及生理特征的影响。4.不同的土壤情况、水肥处理对优质高产及生理特征的影响。"
  },
  {
    "source": "山西省农科院攻关项目",
    "name": "南瓜种质资源收集创新及新品种选育",
    "author": "董晓飞",
    "department": "高寒区作物研究所",
    "text": "1、对现有种质资源进行品质、抗病性、熟性、蔓性等主要性状的鉴定。2、收集、鉴定国内处优良南瓜品种、品系，从中筛选和分离特征、特性差异显著的南瓜材料。3、利用生物手段等现代技术来创新育种资源，加快育种进程。4、培育出适应性强、口感好、营养价值高、植株性状优良、高产、抗病的南瓜新品种。"
  },
  {
    "source": "山西省财政支农项目",
    "name": "水旱兼用小麦新品种长麦251示范",
    "author": "常云龙",
    "department": "高寒区作物研究所",
    "text": "该项目以示范带动推广，在项目实施过程中，依托三个地市，五个示范点的示范作用，发挥示范县的推广技术人员和推广技术网络优势，与涉农部门联手合作，使新品种新技术示范与推广高效快速地同步进行。<br>（1）种子生产：在谷子所及谷村建设35亩原种、原原种繁育基地，生产原种1.425万公斤，确保良种生产基地及示范田用种。同时，以示范田作为良种生产田，严格去杂、去劣、加工处理，确保有充足的优质合格种子供应示范田使用。<br>（2）示范展示：在晋中市（祁县、介休）、长治市（长子、黎城）、晋城市（泽州）三个地市建设五个高产示范田合计500亩，示范田亩产比当地目前主推小麦品种平均亩产增产40公斤或增产10%以上。<br>（3）技术培训：以三市五个示范点为主体，组织范围内的种粮大户、龙头企业代表、合作社社员及麦农等集中培训，培训农技人员300人次。<br>（4）宣传推广：通过电视、报刊、印发资料、现场观摩等多种形式广泛宣传，促进新品种的示范推广工作，发放技术宣传资料10000份。该项目以高产稳产、多抗广适、水旱兼用小麦新品种长麦251的示范推广为技术核心，配套小麦精播增密、适期晚播、氮肥后移、化控防倒、除草、增重等栽培技术。使新品种高产稳产耐旱抗病的特点得到充分发挥，产量潜力得到充分挖掘。"
  }, {
    "source": "山西省农业科技成果转化与示范推广项目",
    "name": "玉露香梨优质栽培技术示范推广",
    "author": "郭黄萍",
    "department": "高粱研究所",
    "text": "在隰县城南乡选择100亩玉露香梨园作为优质果园示范基地，并辐射推广5000亩；在寿阳上湖乡常村选择50亩玉露香梨园作为优质果园示范基地，并辐射推广5000亩。在果树生产管理关键时期，组织果树专家技术团队，深入隰县、寿阳基地开展农业技术服务，针对性地开展培训和现场观摩会，通过集中培训、现场指导、发放技术资料等多种方式，培训人数200人次。项目实施后，预计示范区玉露香梨优质果率在原有基础上可提高10%、亩可增收800-1000元，150亩可增加收入15万元，经济效益显著。"
  }, {
    "source": "山西省农科院攻关项目",
    "name": "萝卜新品种选育",
    "author": "王生武",
    "department": "高粱研究所",
    "text": "萝卜新品种选育及栽培技术研究"
  }, {
    "source": "山西省科技成果转化引导专项",
    "name": "国审晋荞6号推广",
    "author": "李占成",
    "department": "谷子研究所",
    "text": "灵丘县、右玉县等地推广晋荞6号20000亩"
  }, {
    "source": "山西省农科院攻关项目",
    "name": "高产、优质苦荞新品种选育",
    "author": "吕慧卿",
    "department": "谷子研究所",
    "text": "1.继续对优势群体进行化学诱变处理并种植高代材料<br>2.通过田间鉴定，结合室内分析，筛选品质优、产量高、抗性强的突变后代，创新杂粮种质资源3.对优良突变后代进行系统选育，通过品比、多点试验、抗性鉴定，选出1-2个品系进行生产试验并示范推广"
  }, {
    "source": "山西省重点研发农业一般项目（省攻关项目）",
    "name": "饲料精细加工技术对育肥猪生产性能影响研究",
    "author": "李文刚",
    "department": "国际合作处",
    "text": "不填"
  }, {
    "source": "山西省农科院博士基金",
    "name": "茄子耐低温性遗传机理的研究",
    "author": "阎世江",
    "department": "果树研究所",
    "text": "不填"
  }, {
    "source": "山西省农科院重点项目",
    "name": "麦茬复播蔬菜关键技术研究",
    "author": "焦彦生",
    "department": "果树研究所",
    "text": "不填"
  }, {
    "source": "山西省农科院其他项目",
    "name": "小孢子培养技术在大白菜种质资源创新中的应用",
    "author": "王秀英",
    "department": "经济作物研究所",
    "text": "不填"
  }, {
    "source": "山西省农科院其他项目",
    "name": "小白菜雄性不育系的选育与利用",
    "author": "赵俊",
    "department": "经济作物研究所",
    "text": "不填"
  }, {
    "source": "山西省重点研发农业一般项目（省攻关项目）",
    "name": "杏采后果实品质变化及控制技术研究",
    "author": "赵迎丽",
    "department": "棉花研究所",
    "text": "不填"
  }, {
    "source": "山西省成果推广项目",
    "name": "库尔勒香梨、葡萄等水果保鲜技术在新疆的推广应用",
    "author": "张立新",
    "department": "棉花研究所",
    "text": "不填"
  }, {
    "source": "山西省农科院攻关项目",
    "name": "樱桃贮藏保鲜技术研究",
    "author": "陈嘉",
    "department": "农产品加工研究所",
    "text": "不填"
  }, {
    "source": "山西省重点研发农业一般项目（省攻关项目）",
    "name": "拮抗菌Burkholderiacontaminans对草莓采后生防技术的研究",
    "author": "施俊凤",
    "department": "农产品加工研究所",
    "text": "不填"
  }, {
    "source": "山西省农科院博士基金",
    "name": "成团泛菌XM2对水果采后病害生防作用的研究",
    "author": "张晓宇",
    "department": "农产品质量安全与检测研究所",
    "text": "不填"
  }, {
    "source": "山西省重点研发农业一般项目（省攻关项目）",
    "name": "苹果标准化关键技术开发--苹果冷藏设施升级改造及标准化管理技术研究",
    "author": "张立新",
    "department": "农产品质量安全与检测研究所",
    "text": "不填"
  }, {
    "source": "山西省农科院攻关项目",
    "name": "高粱航天育种优良变异的筛选与利用",
    "author": "杨伟",
    "department": "农产品贮藏保鲜研究所",
    "text": "不填"
  }, {
    "source": "山西省农科院生物育种工程",
    "name": "玉米高光效种质资源创制",
    "author": "郭建文",
    "department": "农产品贮藏保鲜研究所",
    "text": "不填"
  }, {
    "source": "山西省农科院攻关项目",
    "name": "白灵菇优质高产成套栽培技术的研究",
    "author": "张勇",
    "department": "农业科技信息研究所",
    "text": "不填"
  }, {
    "source": "山西省农科院攻关项目",
    "name": "香菇高效立体栽培技术研究",
    "author": "张勇",
    "department": "农业科技信息研究所",
    "text": "不填"
  }, {
    "source": "山西省成果推广项目",
    "name": "太育1号玉米新品种全程机械化技术示范（协议后补助）",
    "author": "李中青",
    "department": "农作物品种资源研究所",
    "text": "不填"
  }, {
    "source": "山西省农科院攻关项目",
    "name": "小麦带状间套作玉米高产高效模式研究与示范",
    "author": "霍成斌",
    "department": "农作物品种资源研究所",
    "text": "不填"
  }, {
    "source": "山西省农科院生物育种工程",
    "name": "优质高效谷子新品种选育",
    "author": "郭二虎",
    "department": "山西省农业科学院农业环境与资源研究所",
    "text": "不填"
  }, {
    "source": "山西省农科院生物育种工程",
    "name": "谷子杂交种选育",
    "author": "王玉文",
    "department": "山西省农业科学院农业环境与资源研究所",
    "text": "不填"
  }, {
    "source": "省厅其他项目",
    "name": "不同桃品种功能性营养成分的比较研究",
    "author": "黄丽萍",
    "department": "山西省农业科学院蔬菜研究所",
    "text": "不填"
  }, {
    "source": "山西省农科院其他项目",
    "name": "硬肉桃品种资源的收集、保存评价和利用",
    "author": "黄丽萍",
    "department": "山西省农业科学院蔬菜研究所",
    "text": "不填"
  }, {
    "source": "省厅其他项目",
    "name": "无病毒葡萄种质资源圃的建立",
    "author": "马小河",
    "department": "生物技术研究中心",
    "text": "不填"
  }, {
    "source": "山西省农科院攻关项目",
    "name": "酿酒葡萄优质丰产整形模式研究",
    "author": "马小河",
    "department": "生物技术研究中心",
    "text": "不填"
  }, {
    "source": "山西省成果推广项目",
    "name": "晋扁3号扁桃新品种示范推广",
    "author": "程恩明",
    "department": "食用菌研究所",
    "text": "不填"
  }, {
    "source": "山西省农科院攻关项目",
    "name": "薄壳扁桃新品种选育",
    "author": "何勇曹贵寿",
    "department": "食用菌研究所",
    "text": "不填"
  }, {
    "source": "山西省星火项目",
    "name": "野生山桃改接扁桃的山地旱作栽培关键技术研究及示范",
    "author": "何勇",
    "department": "试验研究中心",
    "text": "不填"
  }, {
    "source": "山西省农科院攻关项目",
    "name": "特色坚果新品种选育",
    "author": "何勇",
    "department": "试验研究中心",
    "text": "不填"
  }, {
    "source": "山西省农科院重点项目",
    "name": "基于GIS的山西道地药材远志土壤养分特征时空分析及施肥效应研究",
    "author": "吴昌娟",
    "department": "饲料兽药研究所",
    "text": "不填"
  }, {
    "source": "山西省农科院所长青年引导专项",
    "name": "山西省远志病虫害动态机制研究及农药安全性评价",
    "author": "裴帅帅",
    "department": "饲料兽药研究所",
    "text": "不填"
  }, {
    "source": "山西省农科院雁门关农牧交错带专项",
    "name": "草、药兼用黄芪品种鉴选及综合利用研究",
    "author": "郭淑红",
    "department": "五寨农业试验站",
    "text": "不填"
  }, {
    "source": "山西省农科院攻关项目",
    "name": "蜂胶酊在养猪生产中的应用研究",
    "author": "樊瑞泉",
    "department": "五寨农业试验站",
    "text": "不填"
  }, {
    "source": "山西省重点研发农业一般项目（省攻关项目）",
    "name": "大豆种质资源收集、鉴定与贮藏",
    "author": "刘学义",
    "department": "隰县试验站",
    "text": "不填"
  }, {
    "source": "山西省重点研发农业一般项目（省攻关项目）",
    "name": "大豆多四粒荚种质创新及理想型数据模型构建",
    "author": "史宏",
    "department": "隰县试验站",
    "text": "不填"
  }, {
    "source": "部委其他项目",
    "name": "分子模块育种先导性项目",
    "author": "刘学义",
    "department": "现代农业研究中心",
    "text": "不填"
  }, {
    "source": "部委其他项目",
    "name": "农业部黄淮海大豆产区农业科学观测实验站",
    "author": "刘学义",
    "department": "现代农业研究中心",
    "text": "不填"
  }, {
    "source": "山西省农科院攻关项目",
    "name": "非组培棉花遗传转化技术研究",
    "author": "张慧军",
    "department": "小麦研究所",
    "text": "不填"
  }, {
    "source": "山西省农科院种业专项",
    "name": "棉花耐旱、耐盐碱种质材料的收集与创新",
    "author": "朱永红",
    "department": "小麦研究所",
    "text": "不填"
  }, {
    "source": "山西省农科院博士基金",
    "name": "棉纤维高度表达基因GhRDL1的功能分析",
    "author": "上官小霞",
    "department": "右玉试验站",
    "text": "不填"
  }, {
    "source": "山西省农科院博士基金",
    "name": "枣园绿盲蝽的适合度及生态调控研究",
    "author": "李建勋",
    "department": "右玉试验站",
    "text": "不填"
  }, {
    "source": "省厅其他项目",
    "name": "中早熟玉米种质资源引进及新品种选育推广",
    "author": "侯有良",
    "department": "玉米研究所",
    "text": "不填"
  }, {
    "source": "山西省农科院攻关项目",
    "name": "水果玉米新品种“晋超甜1号”优质高产高效栽培技术的研究",
    "author": "张广峰",
    "department": "玉米研究所",
    "text": "不填"
  }, {
    "source": "山西省农科院其他项目",
    "name": "利用wx与sh2基因创新异隐纯合体玉米种质研究",
    "author": "杜如珊",
    "department": "园艺研究所",
    "text": "不填"
  }, {
    "source": "省厅其他项目",
    "name": "风味甜糯玉米新品种选育研究",
    "author": "侯有良",
    "department": "园艺研究所",
    "text": "不填"
  }, {
    "source": "山西省农科院重点项目",
    "name": "旱地小麦水分高效利用关键技术研究",
    "author": "卫云宗",
    "department": "植物保护研究所",
    "text": "不填"
  }, {
    "source": "山西省成果推广项目",
    "name": "抗旱优质专用小麦新品种稳产高产技术示范推广",
    "author": "卫云宗",
    "department": "植物保护研究所",
    "text": "不填"
  }, {
    "source": "山西省农科院生物育种工程",
    "name": "抗旱优质高产小麦新品种选育",
    "author": "卫云宗",
    "department": "作物科学研究所",
    "text": "不填"
  }, {
    "source": "山西省农科院生物育种工程",
    "name": "抗旱优质高产小麦新品种选育",
    "author": "卫云宗",
    "department": "作物科学研究所",
    "text": "不填"
  }
];

const patentDetails = [{
  "name": "一种应用于沼气工程的离心挤压式固液分离装置", // 专利名称
  "author": "李永平", // 发明人
  "depart": "畜牧兽医研究所", // 所属部门
  "type": "实用新型", // 专利类型
  "range": "国内", // 专利范围
  "related": "李永平,籍增顺,朱教宁,庞震鹏,林  琭,张晓晨,张纪涛,史向远,王秀红,闫万丽,汤昀,王保平,周静,李欣欣", // 专利发明（设计）人
  "code": "7158187" // 证书号
}, {
  "name": "一种植物种植架",
  "author": "李永平",
  "depart": "畜牧兽医研究所",
  "type": "实用新型",
  "range": "国内",
  "related": "李永平,朱教宁,张晓晨,张纪涛,林  琭,汤昀,闫万丽",
  "code": "7364494"
}, {
  "name": "便携式多功能小麦杂交工具",
  "author": "张建华",
  "depart": "高寒区作物研究所",
  "type": "实用新型",
  "range": "国内",
  "related": "张建华,安林利(外),尚保华,曹勇,杨海峰,行翠平,史民芳,姜兰芳",
  "code": "ZL201520599933.7"
}, {
  "name": "一种小麦单株拔株装置",
  "author": "张建华",
  "depart": "高寒区作物研究所",
  "type": "实用新型",
  "range": "国内",
  "related": "张建华,尚保华,安林利(外),杨海峰,行翠平,史民芳,姜兰芳",
  "code": "ZL201520693450.3"
}, {
  "name": "食用菌栽培袋刺孔增氧机",
  "author": "武旭",
  "depart": "高粱研究所",
  "type": "实用新型",
  "range": "国内",
  "related": "武旭,石建森,李莉(外),刘虹(外),李青,郝丽峰",
  "code": "第5179639号"
}, {
  "name": "手动定量琼脂培养基分装器",
  "author": "王华",
  "depart": "高粱研究所",
  "type": "实用新型",
  "range": "国内",
  "related": "王华,周林,郭尚,萧晋川,赵照林,刘晓红(刘虹),刘欣,郭明慧,杨杰,张红刚,刘晶",
  "code": "6439872"
}, {
  "name": "一种用于棉花育苗的幼苗培育盒",
  "author": "冀丽霞",
  "depart": "谷子研究所",
  "type": "实用新型",
  "range": "国内",
  "related": "冀丽霞",
  "code": "ZL.2016 2 1283423.X"
}, {
  "name": "一种棉花杆拨起装置",
  "author": "冀丽霞",
  "depart": "谷子研究所",
  "type": "实用新型",
  "range": "国内",
  "related": "冀丽霞",
  "code": "ZL.2016 2 1277206.X"
}, {
  "name": "便携式小麦脱粒搓粒板",
  "author": "闫晓涛",
  "depart": "果树研究所",
  "type": "实用新型",
  "range": "国内",
  "related": "闫晓涛",
  "code": "ZL 2016 2 0073538.X"
}, {
  "name": "一种秸杆粉碎旋耕播种一体机",
  "author": "刘根科",
  "depart": "果树研究所",
  "type": "实用新型",
  "range": "国内",
  "related": "刘根科",
  "code": "ZL 2015 2 0982919.5"
}, {
  "name": "一种燕麦及五谷杂粮去皮机",
  "author": "王娟",
  "depart": "经济作物研究所",
  "type": "实用新型",
  "range": "国内",
  "related": "王娟",
  "code": "ZL201620912110.X"
}, {
  "name": "一种可调节授粉网室",
  "author": "李改珍",
  "depart": "经济作物研究所",
  "type": "实用新型",
  "range": "国内",
  "related": "李改珍",
  "code": "ZL201621465684.3"
}, {
  "name": "一种羊药浴工具",
  "author": "王志武",
  "depart": "棉花研究所",
  "type": "实用新型",
  "range": "国内",
  "related": "王志武",
  "code": "ZL201520101151.6"
}, {
  "name": "一种青贮饲料添加发酵菌液的装置",
  "author": "王志武",
  "depart": "棉花研究所",
  "type": "实用新型",
  "range": "国内",
  "related": "王志武",
  "code": "ZL201621378921.2"
}, {
  "name": "食用菌培养料装袋装置",
  "author": "郭尚",
  "depart": "农产品贮藏保鲜研究所",
  "type": "实用新型",
  "range": "国内",
  "related": "郭尚",
  "code": "ZL201420187514.8"
}, {
  "name": "一种新型食用菌栽培袋",
  "author": "郭尚",
  "depart": "农产品贮藏保鲜研究所",
  "type": "实用新型",
  "range": "国内",
  "related": "郭尚",
  "code": "ZL201420070695.6"
}, {
  "name": "果树伞",
  "author": "聂磊云",
  "depart": "农业科技信息研究所",
  "type": "实用新型",
  "range": "国内",
  "related": "聂磊云",
  "code": "ZL201620290941.8"
}, {
  "name": "果树农药喷洒装置",
  "author": "聂磊云",
  "depart": "农业科技信息研究所",
  "type": "实用新型",
  "range": "国内",
  "related": "聂磊云",
  "code": "ZL201620290935.2"
}, {
  "name": "果树喷淋装置",
  "author": "王海松",
  "depart": "山西省农业科学院农业环境与资源研究所",
  "type": "实用新型",
  "range": "国内",
  "related": "王海松",
  "code": "ZL201520966867.2"
}, {
  "name": "先嫁接再大枝扦插一年内繁育樱桃成苗的方法",
  "author": "陈秋芳",
  "depart": "山西省农业科学院农业环境与资源研究所",
  "type": "发明专利",
  "range": "国内",
  "related": "陈秋芳",
  "code": "ZL201110125919.X."
}, {
  "name": "一种红枣分级机",
  "author": "张倩茹",
  "depart": "山西省农业科学院蔬菜研究所",
  "type": "实用新型",
  "range": "国内",
  "related": "张倩茹",
  "code": "ZL201621189915.2"
}, {
  "name": "割裂干枣果肉的装置",
  "author": "尹蓉",
  "depart": "山西省农业科学院蔬菜研究所",
  "type": "实用新型",
  "range": "国内",
  "related": "尹蓉",
  "code": "ZL201720057731.9"
}, {
  "name": "一种核桃组织培养茎段试管内处理试管外生根的方法",
  "author": "王国平",
  "depart": "生物技术研究中心",
  "type": "发明专利",
  "range": "国内",
  "related": "王国平",
  "code": "ZL 2011 1 0125919.X"
}, {
  "name": "麻核桃嫩枝扦插生根的方法",
  "author": "王国平",
  "depart": "生物技术研究中心",
  "type": "发明专利",
  "range": "国内",
  "related": "王国平",
  "code": "ZL201210463308.0"
}, {
  "name": "温湿度传感器",
  "author": "王越",
  "depart": "食用菌研究所",
  "type": "实用新型",
  "range": "国内",
  "related": "王越",
  "code": "ZL201620030837.5"
}, {
  "name": "一种可进行横向和纵向调节的果树喷洒装置",
  "author": "王越",
  "depart": "食用菌研究所",
  "type": "实用新型",
  "range": "国内",
  "related": "王越",
  "code": "ZL2015209669340"
}, {
  "name": "一种芝麻与黄芩的套种方法",
  "author": "刘文萍",
  "depart": "试验研究中心",
  "type": "发明专利",
  "range": "国内",
  "related": "刘文萍",
  "code": "ZL201410128068.8"
}, {
  "name": "一种移苗器",
  "author": "刘文萍",
  "depart": "试验研究中心",
  "type": "实用新型",
  "range": "国内",
  "related": "刘文萍",
  "code": "ZL201120329346.8"
}, {
  "name": "一种西葫芦杂交育种方法",
  "author": "雷逢进",
  "depart": "隰县试验站",
  "type": "发明专利",
  "range": "国内",
  "related": "雷逢进",
  "code": "ZL201010249823.x"
}, {
  "name": "土壤扩蓄增容颗粒有机肥",
  "author": "南建福",
  "depart": "隰县试验站",
  "type": "发明专利",
  "range": "国内",
  "related": "南建福",
  "code": "ZL200910073846.7"
}, {
  "name": "便携式可充电光控诱虫装置",
  "author": "梁哲军",
  "depart": "现代农业研究中心",
  "type": "实用新型",
  "range": "国内",
  "related": "梁哲军",
  "code": "ZL201120209961.5"
}, {
  "name": "高效油菜割晒机",
  "author": "咸栓师",
  "depart": "现代农业研究中心",
  "type": "实用新型",
  "range": "国内",
  "related": "咸栓师",
  "code": "ZL201120297428.9"
}, {
  "name": "箱式农田幼苗围土机",
  "author": "李朋波",
  "depart": "小麦研究所",
  "type": "实用新型",
  "range": "国内",
  "related": "李朋波",
  "code": "ZL201220403922.3"
}, {
  "name": "小麦精量撒播机",
  "author": "任文斌",
  "depart": "小麦研究所",
  "type": "实用新型",
  "range": "国内",
  "related": "任文斌",
  "code": "ZL201220624589.9"
}, {
  "name": "玉米三垄两沟条带播种耧",
  "author": "谢三刚",
  "depart": "右玉试验站",
  "type": "实用新型",
  "range": "国内",
  "related": "谢三刚",
  "code": "ZL 2016 2 0682137.4"
}, {
  "name": "玉米垂直旋耕集中施肥双垄沟播耧",
  "author": "谢三刚",
  "depart": "右玉试验站",
  "type": "实用新型",
  "range": "国内",
  "related": "谢三刚",
  "code": "ZL 2016 2 0682147.8"
}, {
  "name": "小麦穗行播种压沟器",
  "author": "谢三刚",
  "depart": "玉米研究所",
  "type": "实用新型",
  "range": "国内",
  "related": "谢三刚",
  "code": "ZL 2016 2 0682149.7"
}, {
  "name": "玉米带耕沟播耧",
  "author": "席天元",
  "depart": "玉米研究所",
  "type": "实用新型",
  "range": "国内",
  "related": "席天元",
  "code": "ZL 2016 2 0682138.9"
}, {
  "name": "编织袋口撑架",
  "author": "郭建芳",
  "depart": "园艺研究所",
  "type": "实用新型",
  "range": "国内",
  "related": "郭建芳",
  "code": "ZL201621193125.1"
}, {
  "name": "一种便于更换的玉米机六棱剥皮辊?",
  "author": "丁健",
  "depart": "园艺研究所",
  "type": "实用新型",
  "range": "国内",
  "related": "丁健",
  "code": "ZL201621202158.8"
}, {
  "name": "一种农业割草机的刀头组件",
  "author": "王世荣",
  "depart": "植物保护研究所",
  "type": "实用新型",
  "range": "国内",
  "related": "王世荣",
  "code": "ZL201520351417.2"
}, {
  "name": "一种综合玉米播种机",
  "author": "黄欣",
  "depart": "植物保护研究所",
  "type": "实用新型",
  "range": "国内",
  "related": "黄欣",
  "code": "Zl201520809106.6"
}, {
  "name": "可伸缩移动式小籽粒作物种子晾晒架",
  "author": "周元成",
  "depart": "作物科学研究所",
  "type": "实用新型",
  "range": "国内",
  "related": "周元成",
  "code": "ZL201620482185.9"
}, {
  "name": "一种水后简捷定植方法",
  "author": "梁明珠",
  "depart": "作物科学研究所",
  "type": "发明专利",
  "range": "国内",
  "related": "梁明珠",
  "code": "ZL201410098451.3"
}];

//-----------------科技研发 end -----------------

/**
 * 建设规划 一城三园五区
 * company 重点企业数
 * area 占地面积
 * core 核心区占地
 */
const oneCityThreeParkFiveArea = [{
  company: 6,
  area: 4500,
  core: 2200
},{
  company: 5,
  area: 74000,
  core: 9300
},{
  company: 4,
  area: 24000,
  core: 1300
},{
  company: 1,
  area: 25000,
  core: 7200
},{
  company: 0,
  area: 0,
  core: 0
},{
  company: 4,
  area: 156000,
  core: 4500
},{
  company: 5,
  area: 52000,
  core: 493
},{
  company: 2,
  area: 80000,
  core: 18
},{
  company: 5,
  area: 90000,
  core: 20000
},{
  company: 11,
  area: 1069500,
  core: 1229989
}];

//=================END======================

export {
  farmProduceOutputValue,
  farmProduceMartTop,
  enterpriseOutputValueTrend,
  andTransferRate,
  formOfLandTransfer,
  agriculturalInsurance,
  materialConsumption,
  processingOutput,
  outputValue,
  facilityType,
  businessModel,
  serviceEnterprises,
  topTotalData,
  agricultureOverviewChart,
  industryStructBarChart,
  industryStructProportionChart,
  colorList,
  economicDevelopBarChart,
  peopleIncomeBarChart,
  mainAgriculturalProcutNumsBarChart,
  scaleBreedAreaBarChart,
  agriculturalResourceAreaProportionChart,
  agriculturalCooperationAreaBarChart,
  // ly 新
  fetchJxwyData,
  getFqxzData,
  numOfTree,
  growPieData,
  seasonEnvironment,
  getWeather,
  getMonitors,
  getRegions,

  educationRatio,
  educationTypeRatio,
  sexRatio,
  scienceResearchPersonTotal,
  partyMemberTotal,
  photoDetails,
  scienceResearchProjectTotal,
  patentTotal,
  newBreedTotal,
  levelSum,
  unitSum,
  patentDepartSum,
  departmentDetail,
  patentDetails,
  oneCityThreeParkFiveArea
}
